/* 基础全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('/static/imgs/back1.jpg') no-repeat fixed center/cover;
}

/* 登录容器 */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.login-container h2 {
    margin: 0 0 2rem 0;
    font-size: 1.8rem;
    color: #2c3e50;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 注册容器 */
.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.container h2 {
    margin: 0 0 2rem 0;
    font-size: 1.8rem;
    color: #2c3e50;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 通用表单样式 */
.form-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

label {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

input {
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 按钮通用样式 */
button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* 登录按钮 */
.login-container button {
    background: lightsteelblue;
    color: white;
}

.login-container button:hover {
    background: lightslategray;
}

/* 注册按钮 */
.container button {
    background: lightsteelblue;
    color: white;
}

.container button:hover {
    background: lightslategray;
}

/* 辅助按钮 */
#registerButton {
    background: #e2e8f0;
    color: #2d3748;
}

#registerButton:hover {
    background: #cbd5e0;
}

/* 响应消息 */
#response-message {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container, .container {
        width: 90%;
        padding: 1.5rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}